package com.gblfy.ws.controller;

import com.gblfy.ws.entity.User;
import com.gblfy.ws.mapper.UserMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class UserController {

    @Resource
    private UserMapper userMapper;

    @GetMapping("user/list")
    public List<User> selectUserList() {
        return userMapper.selectList(null);
    }
}
